<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<%@ include file="head.jsp"%>
	<h2>Compensation List For Approval</h2>
	<table>

		<tr>
			<td>Compensation ID</td>
			<td>User ID</td>
			<td>User Name</td>
			<td>Number of Days Claiming</td>
			<td>Status</td>
			<td></td>
			<td></td>
		</tr>

		<c:if test="${sessionScope.compList.isEmpty()}">
			<span style="color:Red">There are no more Compensation Application.</span>
		</c:if>

			<c:forEach items="${sessionScope.compList}" var="comp">
				<tr>
					<td>${comp._compID}</td>
					<td>${comp._userID}</td>
					<td>${comp._userName}</td>
					<td>${comp._numberOfDays}</td>
					<td>${comp._status}</td>
					<td><c:url var="appurl" value="/CompensationList/Approve">
							<c:param name="compID" value="${comp._compID}" />
							<c:param name="userID" value="${comp._userID}" />
							<c:param name="noOfDays" value="${comp._numberOfDays}" />
							<c:param name="status" value="${comp._status}" />
						</c:url> <a href="${appurl}">Approve</a></td>

					<td><c:url var="rejurl" value="/CompensationList/Reject">
							<c:param name="compID" value="${comp._compID}" />
							<c:param name="status" value="${comp._status}" />
						</c:url> <a href="${rejurl}">Reject</a></td>
				</tr>
			</c:forEach>
	</table>
</body>
</html>